//英尺与米的转换
const coefficient = 0.3048
/**
 * 英尺转换米
 * @param ft
 * @returns
 */
const getM = (ft: number) => ft * coefficient
/**
 * 米转换英尺
 * @param ft
 * @returns
 */
const getFT = (m: number) => m / coefficient
const o = (e: number) => {
  const ft = getFT(e)
  let i = Math.floor(ft)
  let s = (12 * ft) % 12
  return 12 === Math.round(s) ? ((i += 1), (s = 0)) : (s = Math.round(s)), { feet: i, inches: s }
}
export default {
  getM,
  getFT,
  o
}
// _F: getM,
// zy: getFT,
// XJ: o
